On Parsing Programming Languages with Turing-Complete Parser

نویسندگان

چکیده

A new parsing method based on the semi-Thue system is described. Similar to, but with more efficient implementation than Markov normal algorithms, it can be used for any recursively enumerable language. Despite its computational power, meant to primarily programming and domain-specific languages. It enables a straightforward simulation of number existing algorithms context-free grammars. The list includes both top-down shift-produce methods (such as SLL LL) bottom-up shift-reduce LALR LR), well mixed top-down-and-bottom-up such LLLR. To justify use method, paper provides numerous examples how parser actually made in practice. advised that main part some simple well-established approach, e.g., SLL(1), while syntactically complicated phrases parsed by exploiting full power parser. These may either extensions original language or embedded In all similar cases, no restricted context-free. fact, context-sensitive languages handled quite efficiently.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Turing-complete data structure for genetic programming

In generating a program automatically, if we do not know whether the problem is solvable or not in advance, then the representation of the program must be Turing-complete, i.e. the representation must be able to express any algorithms. However, a tree structure used by the standard Genetic Programming is not Turingcomplete. We propose a representation scheme, which is a recurrent network consis...

متن کامل

A Parser Generator System for Level-based Programming Languages

A programming language is usually taught by starting with a small kernel that is continuously extended to the full set of language features. Unfortunately, the existence of advanced language features might confuse students if they accidentally use them and get incomprehensible error messages. To avoid these problems, one should group the language features into different levels so that beginners...

متن کامل

On Parsing LL-Languages

Usually, a parser for an LL(k)-grammar G is a deterministic pushdown transducer which produces a leftmost derivation for a given input string x 2 L(G). Ukkonen 5] has given a family of LL(2)-grammars proving that every parser for these grammars has exponential size. If we add to a parser the possibility to manipulate a constant number of pointers which point to positions within the constructed ...

متن کامل

NJU-Parser: Achievements on Semantic Dependency Parsing

In this paper, we introduce our work on SemEval-2012 task 5: Chinese Semantic Dependency Parsing. Our system is based on MSTParser and two effective methods are proposed: splitting sentence by punctuations and extracting last character of word as lemma. The experiments show that, with a combination of the two proposed methods, our system can improve LAS about one percent and finally get the sec...

متن کامل

Robust Parsing with the Head-corner Parser

The head-corner parser is currently being used in the the NWOPriority Programme on Language and Speech Technology. This programme aims at the construction of a Dutch spoken dialog system for public transport information: OVIS. For this purpose a robust and efficient parser is required. Elsewhere I have shown that the head-corner parser can be a very efficient parser for constraint-based natural...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Mathematics

سال: 2023

ISSN: ['2227-7390']

DOI: https://doi.org/10.3390/math11071594